const Koa = require("koa")
const { koaBody } = require("koa-body")
const cors = require("koa-cors")
const koaStatic = require("koa-static")

const router = require("./routes.cjs")
//读取流
const app = new Koa()
//应用路由
// const router = new Router()

app
  .use(koaBody({ multipart: true }))
  .use(router.routes())
  .use(cors())
  .listen(3000)
